package org.wattdepot.cli;

import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;


/**
 * Junit test class for ListCommandCli.
 * 
 * @author Dean Kim
 *
 */
public class TestListCommandCLi {
  ListCommandCli lcli;
  
  
  /**
   * Initializes class for testing.
   */
  @Before
  public void initializeListCommandLineInterface() {
    
    lcli = new ListCommandCli();
  }

  /**
   * Junit test for IsvalidComman().
   */
  @Test
  public void testIsValidCommand () {
    assertEquals("Check valid commands: SOURCES", lcli.isValidCommand("SOURCES"), true);
    assertEquals("Check valid commands: SUMMARY", lcli.isValidCommand("SUMMARY"), true);
    assertEquals("Check valid commands: TOTAL", lcli.isValidCommand("TOTAL"), true);
    assertEquals("Check valid commands: JADPE", lcli.isValidCommand("JADPE"), false);
    assertEquals("Check valid commands:{empty string} ", lcli.isValidCommand(""), false);
  }
  
  
}
